/**
 * 
 */
package com.chh.mysso.common.utils;

import javax.servlet.http.HttpServletRequest;

/**
 * @author chh
 *
 */
public class SessionUtil {

	public static String getAttrString(HttpServletRequest request, String attrName){
		return (String) request.getSession().getAttribute(attrName);
	}
	
	public static Object getAttr(HttpServletRequest request, String attrName){
		return request.getSession().getAttribute(attrName);
	}
	
	public static void put(HttpServletRequest request, String key, Object value){
		request.getSession().setAttribute(key, value);
	}
}
